package com.liumuxian.exam.pojo;

import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@Entity
@Table(name = "tb_question")
public class Question implements Serializable {
    public static final Integer SINGLECHOICE=0; //单选题
    public static final Integer MULTIPLECHOICE=1;//多选题
    public static final Integer TRUEORFALSEQUESTIONS=2;//判断题
    public static final Integer GAPFILLING=3;//填空题
    public static final Integer ESSAYQUESTION=4;//问答题

    @Id
    @Column(name = "id",length = 20)
    private String id;
    @Column(name = "name",length = 100)
    private String name;//题库名
    @Column(name = "options",length = 255)
    private String options;//选项名
    @Column(name = "answer",length = 255)
    private String answer;//答案
    @Column(name = "analytical")
    private String analytical;//解析
    @Column(name = "isvip")
    private String isvip;//是否vip
    @Column(name = "type",length = 1)
    private Integer type;//属性
    @Column(name = "state",length = 1)
    private Integer state;//状态
    @Column(name = "articleattributeid",length = 20)
    private String articleattributeid;//章节id
    @Column(name = "createdate")
    private Date createdate;
    @Column(name = "updatedate")
    private Date updatedate;
}
